// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Mint from 'mint-ui'
import 'swiper/dist/css/swiper.css';
import axios from 'axios'
import VueTouch from 'vue-touch'

import weChat from 'weixin-js-sdk'

import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.use(preview)

Vue.prototype.$wechat = weChat
Vue.use(VueTouch, {name: 'v-touch'})
Vue.prototype.$axios = axios
// import BMap from 'vue-baidu-map';
// Vue.use(BMap,{
//   ak:"nsG9b2FjU8xXdfUkllIP6Lt3bR7WEiQQ"
// });
axios.defaults.headers = {
  "Content-Type": "application/x-www-form-urlencoded;charset=GBK",
  "Access-Control-Allow-Credentials":true,
  'Access-Control-Allow-Origin': '*',
  'Access-Control-Allow-Headers': 'X-Test-Cors',
  'Access-Control-Allow-Methods': 'PUT, DELETE,POST,OPTIONS',
  'Access-Control-Max-Age': '1000',
}
// axios.defaults.baseURL="http://172.16.7.252:8080"
//引入


Vue.use(Mint)


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
